
export enum ResultCode {
    'T1' = 1,
    'T101' = 101,
    'T201' = 201,
    'T301' = 301,
    'T401' = 401,
    'T402' = 402,
    'InviteCodeError' = 1005
}

export enum PostMethod {
    GET = "get",
    POST = "post",
    POST_FORM = "postForm",
    POST_JSON = "postJson",
}

export interface RequestParameter {
    method?: PostMethod,
    url: string,
    data?: any,
    headers?: any,
    timeout?: number,
    retry?: number,
    release?: boolean | null | undefined,
    fullUrl?: boolean,
}

export interface ResultType<T> {
    code: ResultCode;
    data: T;
    message: string;
    success: boolean;
    error: boolean;
}



